//
//  CardPackageView.h
//  MyWallet
//
//  Created by 小肥羊 on 15/7/15.
//  Copyright (c) 2015年 小肥羊. All rights reserved.
//
//  卡包

#import <UIKit/UIKit.h>
#import "CardView.h"

@class CardPackageView;
@protocol CardPackageViewDelegate <NSObject>

- (void)saveMoney:(CardPackageView *)cardPackageView CardView:(CardView *)cardView AtIndex:(NSInteger)index;
- (void)drawMoney:(CardPackageView *)cardPackageView CardView:(CardView *)cardView AtIndex:(NSInteger)index;
- (void)checkCard:(CardPackageView *)cardPackageView CardView:(CardView *)cardView AtIndex:(NSInteger)index;
- (void)activationCard:(CardPackageView *)cardPackageView CardView:(CardView *)cardView AtIndex:(NSInteger)index;
- (void)cancellationCard:(CardPackageView *)cardPackageView CardView:(CardView *)cardView AtIndex:(NSInteger)index;

@end

@interface CardPackageView : UIView <CardViewDelegate>

@property (weak, nonatomic) IBOutlet CardView *card1;
@property (weak, nonatomic) IBOutlet CardView *card2;
@property (weak, nonatomic) IBOutlet CardView *card3;
@property (weak, nonatomic) IBOutlet CardView *card4;
@property (weak, nonatomic) IBOutlet CardView *card5;
@property (weak, nonatomic) IBOutlet CardView *card6;

@property (nonatomic, retain) id <CardPackageViewDelegate> delegate;      /**< 卡代理 */


#pragma mark - 公共方法
- (void)upCardPackage:(TotalAssets *)totalAssets;

@end
